package cn.edu.scau.cmi.huangmaoqin.composite.safe;

import java.util.ArrayList;

public class SafeTeam implements SafeOrganization {
	private String name = null;
	private ArrayList<SafeOrganization> children = null;

	public SafeTeam(String name) {
		this.name = name;
		children = new ArrayList<SafeOrganization>();
	}

	@Override
	public String getName() {

		return name;
	}

	public void addChild(SafeOrganization c) {
		children.add(c);
	}

	public void removeChild(SafeOrganization c) {
		children.remove(c);
	}

	public ArrayList<SafeOrganization> getChildren() {
		return children;
	}

	public void setChildren(ArrayList<SafeOrganization> children) {
		this.children = children;
	}
}
